setInterval(myDate, 1000); //设置每一秒执行一次获取系统时间与日期

function myDate() {
	//获取需要的系统时间  179000934 唐国橼
	let date = new Date();
	let week = date.getDay(); //获取星期		
	let day = date.getDate(); //获取天数
	let hours = date.getHours(); //获取小时
	let minutes = date.getMinutes(); //获取分
	let seconds = date.getSeconds(); //获取秒

	week = `星期${week = week == 0 ? "天":week}`;
	day = day < 10 ? "0" + day : day;
	hours = hours < 10 ? "0" + hours : hours;
	minutes = minutes < 10 ? "0" + minutes : minutes;
	seconds = seconds < 10 ? "0" + seconds : seconds;
	let time = `${hours}:${minutes}:${seconds}`;


	document.querySelector(".week").innerHTML = week;
	document.querySelector(".myday").innerHTML = day;
	document.querySelector(".mytime").innerHTML = time;
}
